Ext.define('WP.controller.Main', {
    extend: 'Ext.app.Controller',
    views: ['Main', 'PageWP', 'ReadRSS'],
    requires: ['WP.view.Main', 'WP.store.WpPosts'],
    config: {
        refs: {
            main: '#mainTabPanel'    
        }
    },
    
    init : function(){
	this.control({
	    
	});
    },
    
    launch: function(){
	var panMain = Ext.create('WP.view.Main',{});
	Ext.Viewport.add(panMain);
	Ext.Viewport.setActiveItem(0);
    },
    
});
